/**
 * AgaEngine (c)2011.
 * FileName:Tank.java
 */
package aga.game.tankhero;

import org.jbox2d.dynamics.BodyType;

import aga.engine.physic.PhysicEngine;
import aga.engine.physic.Rectangle;
import android.graphics.Canvas;
import android.graphics.Color;

/**
 * @author zhe.yangz
 */
public class Border extends Obstacle {
	/**
	 * @param pe
	 * @param b
	 * @param x
	 * @param y
	 */
	public Border(PhysicEngine pe) {
		super(pe, null, 0, 0);
		
		alwaysShow = true;
	}

	/**
	 * @param b
	 */


	//===========================================================
	//Constants
	//===========================================================

	//===========================================================
	//Fields
	//===========================================================

	//===========================================================
	//Constructors
	//===========================================================

	
	//===========================================================
	//Getter & Setter
	//===========================================================


	//===========================================================
	//Methods for/from SuperClass/Interfaces
	//===========================================================

	@Override
	protected void definePhysics(float x, float y, float angle) {
		Rectangle top = pPE.createRectangle(50, 0.2f, 50, 0.1f, 100000, 0.3f, 1f, BodyType.STATIC, Color.BLUE);
		mPhysics.add(top);
		
		Rectangle left = pPE.createRectangle(0.2f, 50, 0.1f, 50, 100000, 0.3f, 1f, BodyType.STATIC, Color.BLUE);
		mPhysics.add(left);
		
		Rectangle bottom = pPE.createRectangle(50, 99.8f, 50, 0.1f, 100000, 0.3f, 1f, BodyType.STATIC, Color.BLUE);
		mPhysics.add(bottom);
		
		Rectangle right = pPE.createRectangle(99.8f, 50, 0.1f, 50, 100000, 0.3f, 1f, BodyType.STATIC, Color.BLUE);
		mPhysics.add(right);
		
	}
	
	@Override
	public void draw(Canvas canvas) {
		super.draw(canvas);
	}

	@Override
	public void tick() {
		super.tick();
	}
	//===========================================================
	//Methods
	//===========================================================


	//===========================================================
	//Inner and Anonymous Classes
	//===========================================================
}
